package com.hspedu.poly_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/21
 * @time 20:18
 */
public class Animal  {
    private String name;

    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void eat(){
        System.out.println("animal eat");
    }
}
